package com.rd.student.jike.class1.jiangwanli;

import java.util.Arrays;

public class XuanZePaiXu {
    public static void main(String[] args) {
        int[] arr = new int[]{60,77,33,55,88,90,99};
        int min = 0 ;
        for (int i = 0; i < arr.length; i++){
            for (int j = 0; j < arr.length-i-1; j++){
                if (arr[j] > arr[j+1]){
                    min = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = min;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
